from llama_index.core import SimpleDirectoryReader

data_dir = 'D:/pythonRoom/llm_llama/data'
reader = SimpleDirectoryReader(
    input_dir=data_dir,
    recursive=True
)
documents = reader.load_data()
for doc in documents:
    print(doc.metadata)
